package com.interview.gc;

import java.util.Random;

public class GCDemo1 {
    public static void main(String[] args) {
        System.out.println("##########GCDemo Hello###############");
        try
        {
            String str = "不负韶华不负卿";
            while (true){
                str += str + new Random().nextInt(77777777)
                           + new Random().nextInt(88888888);
                str.intern();
            }
        } catch (Exception e){
            e.printStackTrace();
        } finally {

        }
        test();
    }

    public static void test(){
        int a = 1;
        int b = 2;
        int c = a + b;
        int y = b + c;
        String name = "迪丽热巴";
    }
}